package com.mes.cloud.api.dto.request.organization;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * <组织行政区划请求实体>
 * @author xy
 * @date   2019/8/3 10:39
 * @version 1.0
 */
@Data
public class BaseOrganizationAreaPageRequest implements Serializable{
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "当前页", required = true)
    @NotNull(message = "currentPage不能为空")
    private int currentPage;

    @ApiModelProperty(value = "每页条数", required = true)
    @DecimalMax(value = "1000", message = "currentPage不能超过1000")
    private int pageSize;

    @ApiModelProperty(value = "排序", required = false)
    private String orderBy;

    @ApiModelProperty(value = "主键ID", required = false)
    private String organizationId;

    @ApiModelProperty(value = "区划名称或编码", required = false)
    private String queryString;

}
